package com.pipayshop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 用户数据表
 * </p>
 *
 * @author kk
 * @since 2024-09-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_info")
@Schema(description="用户数据表")
public class HotelUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "pi的用户id")
    private String uid;

    @Schema(description = "pi的用户名（唯一）")
    private String piName;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "登录令牌")
    private String accessToken;

    @Schema(description = "上次登录时间")
    private LocalDateTime lastLogin;

    @Schema(description = "个人简介")
    private String personalProfile;

    @Schema(description = "国家代码")
    private String country;

    @Schema(description = "语言")
    private String language;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "联系电话，用作先花未来pi币吧")
    private String phone;

    @Schema(description = "真实姓名，用作先花未来pi币吧")
    private String realName;

    @Schema(description = "0:普通用户1:商家用户2:业务员")
    private Boolean level;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "0:正常使用1:禁用")
    private Boolean status;

    @Schema(description = "用户头像的图片id")
    private String userImage;

    @Schema(description = "剩余可绑定的实体店数量")
    private Integer shopBalance;

    @Schema(description = "0：女1：男")
    private Integer gender;

    @Schema(description = "用户ip地址")
    private String userIp;

    @Schema(description = "0:不是pi商 1:是pi商")
    private Integer piShoper;

    @Schema(description = "0:不是供应商 1:是供应商商")
    private Integer supplier;


}
